home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
-
- <xsl:output method="html"
- doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
-
- $INCLUDE(commonvar.inc)$
-
- <fd:capabilities showExcerpts="false" toggleExcerpts="false" collapsePosts="false" itemGrouping="false" />
-
- <xsl:variable name="img_link-new" select="'$IMAGEDIR$linknew.gif'"/>
- <xsl:variable name="lang_hint_open_new" select="'$LANG_CONST(S_NewsHintOpenInNewTab)$'"/>
- <xsl:variable name="feed-type" select="newspaper/channel/@feedType"/>
-
- <xsl:variable name="common-styles">
- <style type="text/css">
- $INCLUDE(commonstyles.css)$
-
- body {
- font-size: $FONT-SIZE-NEWSPAPER$;
- font-family: "$FONT-NAME-NEWSPAPER$", "Trebuchet MS", Tahoma, sans-serif;
- color: white;
- margin: 0;
- text-align: center;
- background-color: #555555;
- filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#555555,endColorStr=#353535);
- }
-
- a { color: white; }
- a:hover { color: #00CCC9; }
- a.notcached {
- text-decoration: none ! important;
- border-bottom: 1px dotted #FF8E8E ! important;
- }
-
- div.newspapertitle {
- margin-top: 20px;
- }
- div.newspapertitle, div.newsitemtitle {
- font-size: x-large;
- font-weight: bold;
- width: 100%;
- filter:progid:DXImageTransform.Microsoft.DropShadow(color=black, offX=2, offY=2);
- }
-
- div#container {
- margin-top: 20px;
- padding-bottom: 20px;
- }
- div.newsitem, div.thumbnail {
- vertical-align: middle;
- padding: 14px 8px;
- }
- div.thumbnail {
- display: inline;
- }
- div.newsitem img, div.thumbnail img {
- border: 3px solid white;
- filter:progid:DXImageTransform.Microsoft.DropShadow(color=#353535, offX=5, offY=5);
- }
- div.newsitem a:hover img, div.thumbnail a:hover img {
- border: 3px solid red;
- }
- div.newsitemtitle { margin-bottom: 20px; }
- img.icon { border: none; }
- div#noitems {
- color: white;
- }
- #fdfocusedpost {
- background-color: #6A6A6A;
- }
- div.newsitem img {
- /* override img align when assigned */
- vertical-align: baseline;
- }
-
- </style>
- </xsl:variable>
-
- <xsl:template match="newspaper">
- <xsl:variable name="folderId" select="@folderId"/>
-
- <html>
- <head>
- <title>Newspaper (<xsl:value-of select="title" disable-output-escaping="yes"/>)</title>
- $INCLUDE(metatrans.inc)$
- <xsl:copy-of select="$common-styles"/>
- </head>
- <body>
- <xsl:if test="title and $newspaper-type != 'newsitem'">
- <div class="newspapertitle"><xsl:value-of select="title" disable-output-escaping="yes"/></div>
- </xsl:if>
- <div id="container">
- <xsl:if test="$item-count=0"><div id="noitems">$LANG_CONST(S_NoItemsInNewspaperFilter)$</div></xsl:if>
- <xsl:for-each select="channel/item">
- <xsl:sort select="@sortIndex" data-type="number"/>
- <xsl:apply-templates select="."/>
- </xsl:for-each>
- </div>
- </body>
- </html>
- </xsl:template>
-
- <!-- news item template -->
- <xsl:template match="item">
- <xsl:variable name="feedId" select="@feedId"/>
- <xsl:variable name="postId" select="@postId"/>
- <xsl:variable name="itemtitle"><xsl:value-of select="title" disable-output-escaping="yes"/></xsl:variable>
-
- <div class="fdnewsitem" name="{$feedId}:{$postId}">
- <xsl:choose>
- <!-- show only images when not a single newsitem -->
- <xsl:when test="($newspaper-type != 'newsitem')">
- <xsl:choose>
- <!-- use mediaRSS thumbnail if available (test with non-synched Flickr feeds) -->
- <xsl:when test="thumbnail/@url">
- <div class="thumbnail">
- <xsl:variable name="thumbnail-url" select="thumbnail/@url"/>
- <a href="fdaction:?action=gotopost&postId={$postId}&feedId={$feedId}" title="{$itemtitle}">
- <img src="{$thumbnail-url}" alt="{$itemtitle}" />
- </a>
- </div>
- </xsl:when>
- <!-- otherwise, show full description -->
- <xsl:otherwise>
- <div class="newsitem">
- <a href="fdaction:?action=gotopost&postId={$postId}&feedId={$feedId}" title="{$itemtitle}">
- <xsl:value-of select="description" disable-output-escaping="yes"/>
- </a>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <div class="newsitemtitle">
- <a href="fdaction:?action=gotopostlink&postId={$postId}&feedId={$feedId}" title="{$itemtitle}">
- <xsl:value-of select="$itemtitle" disable-output-escaping="yes"/>
- </a>
- </div>
- <div class="newsitem">
- <xsl:value-of select="description" disable-output-escaping="yes"/>
- </div>
- <div class="footer">
- <xsl:value-of select="dateDisplay"/>
- <xsl:if test="author">
- | <xsl:value-of select="author" />
- </xsl:if>
- <xsl:if test="source and source/@htmlUrl">
- <xsl:variable name="srclink" select="source/@htmlUrl"/>
- | <a href="{$srclink}"><xsl:value-of select="source"/></a>
- </xsl:if>
- <xsl:if test="link">
- | <a class="icon" href="fdaction:?action=gotopostlink&newtab=1&feedid={$feedId}&postid={$postId}" title="{$lang_hint_open_new}"><img src="{$img_link-new}" class="icon" align="absmiddle" /></a>
- </xsl:if>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </xsl:template>
-
- </xsl:stylesheet>